import http from '../util/http.js'

const removeByIdUrl = '/order/removeById'
const createUrl = '/order/create'
const queryByIdUrl = '/order/queryById'
const modifyUrl = '/order/modify'
const queryByUidUrl = '/order/queryByUid'

const removeById = (data) => {
    return http.del(removeByIdUrl, data)
}
const create = (data) => {
    return http.post(createUrl, data)
}
const queryById = (data) => {
    return http.get(queryByIdUrl, data)
}
const modify = (data) =>{
    return http.put(modifyUrl,data)
}
const queryByUid =(data) =>{
    return http.get(queryByUidUrl,data)
}

export default {
    removeById,create,queryById,modify,queryByUid
}